﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Electronic_work_order.Model
{
    public class commission
    {
        //待办工作表
        [Key]
        public string Agency_ID { get; set; }  //任务单单号
         //LeaveName 申请人  Varchar(20)
        public string ApplicationName { get; set; }

        //organizationId 部门  人事资源部，信息管理部 Varchar(20)
        public int OrganizationId { get; set; }
        [ForeignKey("OrganizationId")]
        public virtual Organization Organization { get; set; }

        //申请类型
        public int Aid { get; set; }
        [ForeignKey("Aid")]
        public virtual application Application{ get; set; }

        public int Manager_id { get; set; }


        public int Process_State_ID { get; set; }
        [ForeignKey("Process_State_ID")]
        public virtual Process_application_State Process_Application_State { get; set; }
        public int Director_Id { get; set; }

        //CreateTime 创建时间    创建当前时间 Datetime
        public DateTime CreateTime { get; set; }

    }
}
